﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web;
using NLog;
using NLog.Config;
using NLog.Targets;

namespace RegulatoryPlatform.Tools
{
    public class Logger
    {
        static NLog.Logger Log = LogManager.GetLogger("");

        /// <summary>
        /// 写日志
        /// </summary>
        /// <param name="message"></param>
        public static void WriteLog(string message)
        {
            lock (Log)
            {
                Log.Info("    " + message + "\r\n\r\n");
            }
        }
        public static void WriteLog(string message, params object[] args)
        {
            lock (Log)
            {
                Log.Info("    " + string.Format(message, args));
            }
        }
    }
}